<!DOCTYPE html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <title>{BEESCRM:$title}</title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" type="text/css" href="/assets/base/center/css/common.css?{BEESCRM:$time}">
    <link rel="stylesheet" type="text/css" href="/assets/base/center/css/index.css?{BEESCRM:$time}">
    <link rel="stylesheet" type="text/css" href="/assets/base/center/css/font.css?{BEESCRM:$time}">
    <link rel="stylesheet" type="text/css" href="/assets/base/center/css/swiper.min.css?{BEESCRM:$time}">
</head>
<body>
<div class="wraper center">
    <!--<div class="top wservice">
        <img class="logo" src="/assets/base/center/images/wservice.png"/>
        <p class="slogan"></p>
    </div>-->
    <!--	<div class="menu point clearfix">
        <volist name="data.top" id="vo">
            <div class="list-box pull-left">
                <a href="{BEESCRM:$vo.url}/account_id/{BEESCRM:$account_id}" class="menu-list tb-mode">
                    <p class="tb-cell text-right"><span class="{BEESCRM:$vo.icon}"></span></p>
                    <span class="tb-cell text-left">{BEESCRM:$vo.name}</span>
                </a>
            </div>
        </volist>
    </div>-->

    <div class="menu point clearfix">
        <div class="list-box pull-left">
            <a href="{BEESCRM::U('/base/UserCenter/index',array('account_id'=>$account_id))}" class="menu-list">
                <p class="photo"><img src="{BEESCRM:$avatar}"/></p>
                <p class="menu-text"><if condition="$wechatInfo['nickname']">{BEESCRM:$wechatInfo['nickname']}<else/>{BEESCRM:$username}</if></p>
            </a>
        </div>
        <div class="list-box pull-left qrcode">
            <a href="javascript:void(0);" class="menu-list" id="qrcode">
                <p class="saoma"><img src="/assets/base/center/images/saoyisao.png"/></p>
                <p class="menu-text">扫一扫</p>
            </a>
        </div>
    </div>
    <div class="menu clearfix">
        <volist name="data.menu" id="vo">
            <a href="{BEESCRM:$vo.url}" class="menu-list tb-mode square pull-left">
                <p class="tb-cell">
				<span class="circle {BEESCRM:$vo.color}">
					<span class="{BEESCRM:$vo.icon}"></span>
					<if condition="$vo['status'] eq 1"><span class="new"></span></if>
				</span>
                    <span>{BEESCRM:$vo.name}</span>
                </p>
            </a>
        </volist>
    </div>
    <div class="banner margin-top border-banner">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <!--<volist name="data.news" id="vo">
                    <div class="swiper-slide"><a href="{BEESCRM::U('website/website/detail',array('news_id'=>$vo['news_id'],'account_id'=>$account_id))}"><p class="title">{BEESCRM:$vo['title']}</p><img src="{BEESCRM:$vo['picture']}"></a></div>
                </volist>-->
                <if condition="count($adInfo) egt 1">
                    <volist name="adInfo" id="vo">
                        <div class="swiper-slide"><a href="{BEESCRM:$vo.url}">{BEESCRM:$vo.content}</a></div>
                    </volist>
                    <else/>
                    <div><a href="javascript:void(0);"><img src="/assets/base/center/images/adds.jpg"></a></div>
                </if>
                <!--<div class="swiper-slide"><a href="#"><img src="/assets/base/center/images/adds.jpg"></a></div>-->
            </div>
            <!--<if condition="data.newsCount gt 1"><div class="swiper-pagination hasTitle"></div></if>-->
            <div class="swiper-pagination"></div>
        </div>
    </div>

    <if condition="$account_id neq 10" >
        <div class="bottom-box">
            <p class="copyright" style="bottom: 34px;">杭州青橄榄网络技术有限公司 技术支持</p>
        </div>
    </if>
</div>
<script src="/assets/base/center/js/jquery-2.1.0.min.js"></script>
<script src="/assets/base/center/js/swiper.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<include file="share_header" />
<script>
    var height = $(window).height();
    var bottombox_height = $('.bottom-box').outerHeight();
    $('.wraper').css("minHeight",height);
    $('.wraper').css("paddingBottom",bottombox_height);

    var width = $('.square').width();
    $('.square').css("height",width);

    var swiper = new Swiper('.banner .swiper-container', {
    <if condition="count($adInfo) gt 1">
    pagination: '.banner .swiper-pagination',
    </if>
    paginationClickable: true,
            spaceBetween: 30,
            centeredSlides: true,
            autoplay: 2500,
            autoplayDisableOnInteraction: false
    });

    //调起二维码扫一扫
    $(document).ready(function(){
        $(document).on('click','#qrcode',function(){
            wx.scanQRCode({
                needResult: 0, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
                scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
                success: function (res) {
                    var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
                }
            });
        });
    })
</script>
</body>
</html>